package com.willcode.demo.mvc.model.serviceimpl;

import com.willcode.demo.mvc.model.entity.TempUserInfo4Enum;
import com.willcode.demo.mvc.model.mapper.ITempUserInfoMapper4Enum;
import com.willcode.demo.mvc.model.service.ITempUserInfoService4Enum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Will
 */
@Service
public class TempUserInfoService4EnumImpl implements ITempUserInfoService4Enum {

    @Autowired
    private ITempUserInfoMapper4Enum tempUserInfoMapper;

    @Override
    public int insert(TempUserInfo4Enum tempUserInfo) {
        return tempUserInfoMapper.insert(tempUserInfo);
    }

    @Override
    public int deleteById(String id) {
        return tempUserInfoMapper.deleteById(id);
    }

    @Override
    public int updateById(TempUserInfo4Enum tempUserInfo) {
        return tempUserInfoMapper.updateByid(tempUserInfo);
    }

    @Override
    public TempUserInfo4Enum selectById(String id) {
        return tempUserInfoMapper.selectByid(id);
    }

    @Override
    public List<TempUserInfo4Enum> selectAllTempUserInfo() {
        return tempUserInfoMapper.selectAllTempUserInfo();
    }
}
